package fox.framework.rpc.client.message.response;

/**
 * @author cuichao
 * @Description: RpcClientResponseBuilder
 * @Date: create in 2021/1/23 15:43
 */
public class RpcClientResponseBuilder {

    private RpcClientResponseAPI response = new RpcClientResponseAPI();

    public void setProtocol(String protocol) {
        response.setProtocol(protocol);
    }

    public void setStatus(int status) {
        response.setStatus(status);
    }

    public void setHeader(String name, String value) {
        response.setHeader(name,value);
    }

    public void setResponseEntity(ResponseEntity entity) {
        response.setEntity(entity);
    }

    public RpcClientResponse build() {
        return response;
    }
}
